window.addEventListener("AddonNotifierForOneclick", oneClickLoginListener, false, true);

function oneClickLoginListener(evt) {
	var payload = {
		pid: evt.target.getAttribute("pid"),
		url: evt.target.getAttribute("url")
	};

	prompt("JH:enableOneClickLogin", JSON.stringify(payload));
	return true;
}
